package com.xdjmall.dao;

import java.sql.SQLException;
import java.util.List;

import com.xdjmall.entity.Order;
import com.xdjmall.util.QueryCondition;

public interface OrderDao extends BaseDao<Order>{
    //根据订单号查询
    Order selectByOrderNo(String orderNo)throws SQLException;
    //分页查询
    List<Order> selectOrderList(QueryCondition condition)throws SQLException;
    //得到分页条数
    int selectTotalOrders(QueryCondition pageUtil)throws SQLException;
    //根据主键列表查询
    List<Order> selectByIds(List<Integer> orderIds)throws SQLException;
    //更改订单状态 出库成功
    int checkOut(List<Integer> orderIds)throws SQLException;
    //更改订单状态 关闭订单
    int closeOrder(List<Integer> orderIds,Integer orderStatus)throws SQLException;
    //更改订单状态 配货完成
    int checkDone(List<Integer> orderIds)throws SQLException;
}
